<?php
return array(
    'db' => array(
        'driver' => 'Pdo',
        'dsn' => 'mysql:dbname=CubeTCPOS;host=10.49.51.45',
        'driver_options' => array(
            PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES \'UTF8\'',
        ),
    ),
    'db2' => array(
        'driver' => 'Pdo',
        'dsn' => 'mysql:dbname=CubeMarketing;host=10.49.51.45',
        'driver_options' => array(
            PDO::MYSQL_ATTR_INIT_COMMAND => 'SET NAMES \'UTF8\'',
        ),
    ),
    'service_manager' => array(
        'factories' => array(
            'Zend\Db\Adapter\Adapter' => 'Zend\Db\Adapter\AdapterServiceFactory',
            'Zend\Db\Adapter\Adapter2' => function($sm){
                $config = $sm->get('Config');
                return new Zend\Db\Adapter\Adapter($config['db2']);
            },
        ),
    ),
);
?>